package cn.kgc.service;

import cn.kgc.dto.Dto;
import cn.kgc.service.fallback.FeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author:limengxian
 * @Date:Created in 2020/11/23 14:21
 */
@FeignClient(name = "dmw-user-provider",fallback = FeignServiceFallBack.class)
public interface FeignService{

    @PostMapping("/login")
    public Dto login(@RequestParam String phone,@RequestParam String password);
}
